package research_team.client.generated.business;

import java.util.*;
import research_team.client.notgenerated.eventFramework.PropertyChangeSupport;

/**
* TODO javadoc
*/
public class Person   {

	private String name;
	private String firstname;
	private String affiliation;
	private String phone;
	private String mail;
	private Collection<Software> soft;
	private Seminar seminars;
	private Collection<Paper> paper;
	private Collection<Collaboration> participates;
	private PropertyChangeSupport<String> propertychangesupportname;
	private PropertyChangeSupport<String> propertychangesupportfirstname;
	private PropertyChangeSupport<String> propertychangesupportaffiliation;
	private PropertyChangeSupport<String> propertychangesupportphone;
	private PropertyChangeSupport<String> propertychangesupportmail;
	public void setPropertychangesupportname(PropertyChangeSupport<String> propertychangesupportname) {
		this.propertychangesupportname = propertychangesupportname;
	}
	public void setPropertychangesupportfirstname(PropertyChangeSupport<String> propertychangesupportfirstname) {
		this.propertychangesupportfirstname = propertychangesupportfirstname;
	}
	public void setPropertychangesupportaffiliation(PropertyChangeSupport<String> propertychangesupportaffiliation) {
		this.propertychangesupportaffiliation = propertychangesupportaffiliation;
	}
	public void setPropertychangesupportphone(PropertyChangeSupport<String> propertychangesupportphone) {
		this.propertychangesupportphone = propertychangesupportphone;
	}
	public void setPropertychangesupportmail(PropertyChangeSupport<String> propertychangesupportmail) {
		this.propertychangesupportmail = propertychangesupportmail;
	}
 
	public String get_name() {
		return name;
	}

	public void set_name(String name) {
		if(propertychangesupportname!=null) {
			propertychangesupportname.firePropertyChange(this.name, name);
		}
		System.err.println(name);
		
		this.name = name;
	}

	public String get_firstname() {
		return firstname;
	}

	public void set_firstname(String firstname) {
		if(propertychangesupportfirstname!=null) {
			propertychangesupportfirstname.firePropertyChange(this.firstname, firstname);
		}
		System.err.println(firstname);
		
		this.firstname = firstname;
	}

	public String get_affiliation() {
		return affiliation;
	}

	public void set_affiliation(String affiliation) {
		if(propertychangesupportaffiliation!=null) {
			propertychangesupportaffiliation.firePropertyChange(this.affiliation, affiliation);
		}
		System.err.println(affiliation);
		
		this.affiliation = affiliation;
	}

	public String get_phone() {
		return phone;
	}

	public void set_phone(String phone) {
		if(propertychangesupportphone!=null) {
			propertychangesupportphone.firePropertyChange(this.phone, phone);
		}
		System.err.println(phone);
		
		this.phone = phone;
	}

	public String get_mail() {
		return mail;
	}

	public void set_mail(String mail) {
		if(propertychangesupportmail!=null) {
			propertychangesupportmail.firePropertyChange(this.mail, mail);
		}
		System.err.println(mail);
		
		this.mail = mail;
	}


}